onFocusChanged

fun onFocusChanged(gainFocus: Boolean, direction: Int, @Nullable previouslyFocusedRect: @Nullable Rect)(source)

Delegates focus changes from the host view.

This method should be called by overriding the host view's onFocusChanged method:

@Override
public boolean onFocusChanged(boolean gainFocus, int direction,
    Rect previouslyFocusedRect) {
  super.onFocusChanged(gainFocus, direction, previouslyFocusedRect);
  mHelper.onFocusChanged(gainFocus, direction, previouslyFocusedRect);
}